import { Body, Controller, Get, Post, Res, UseInterceptors, Request } from '@nestjs/common';
import { Response } from 'express';
import { UnConcern } from './unconcern.entity';
import { UnConcernService } from './unconcern.service';
import {
  apibefore
} from '../../router'
import utils from 'src/common/utils';
import { ValidTokenInterceptor } from 'src/interceptor/validToken';
import { ValidRSAInterceptor } from 'src/interceptor/validRSA';

@Controller(apibefore('/unconcern'))
@UseInterceptors(ValidTokenInterceptor)
@UseInterceptors(ValidRSAInterceptor)
export class UnConcernController {
  constructor(private readonly unConcernService: UnConcernService) {}

  // @Post('/create')
  // create(@Body() data: UnConcern, @Request() req){
  //   let unconcern = new UnConcern()
  //   unconcern.create_time = new Date()
  //   unconcern.name = data.name
  //   unconcern.wx_user = req.headers.wx_user
  //   unconcern.use_wx_user = data.use_wx_user
  //   return this.unConcernService.create(unconcern)
  // }

}
